<?php
use app\common\config\autoreply_config;
use app\common\helper\appmsg_helper;
?>
{if $list['data']}
  <ul class="photo-list clearfix js_msgList">
    {foreach $list['data'] as $k=>$v}
      <li class="infoone {if $select_msg_info.id == $v.id}curr{/if}" data-id="{$v.id}">
        <div class="showmulti">
          <ul class="multi-list">
            <li>
              <div class="big">
                <span class="date">{:time_format($v.add_time, 'Y-m-d')}</span>
                <div class="withmap">{if $v.cover}<img src="{:_image($v.cover, 'small')}" alt="">{/if}<h3 class="tit2">{$v.title}</h3></div>
              </div>
            </li>
            {$son_list = appmsg_helper::get_merge_appmsg_list($v.id, 1)}
            {foreach $son_list as $k1=>$v1}
            {if $k1 >= 1}{continue}{/if}
            <li>
              <div class="small clearfix">
                <h3 class="tit3 left">{$v1.title}</h3>
                <div class="withmap2 right">{if $v1.cover}<img src="{:_image($v1.cover, 'small_equal')}" alt="">{/if}</div>
              </div>
            </li>
            {/foreach}
            {if count($son_list) < 1}
            <li>
              <div class="small clearfix">
                <h3 class="tit3 left">--</h3>
                <div class="withmap2 right">&nbsp;</div>
              </div>
            </li>
            {/if}
          </ul>
        </div>
        <i class="icon-select"></i>
      </li>
    {/foreach}
  </ul>
<div id="pages"></div>
{else}
  <div class="search-none search-none-bg">
    <p>还没有多图文信息，点击<a href="{:url('/appmsg/add/2')}" target="_blank" class="search-none-add">添加多图文</a></p>
  </div>
{/if}